package com.lwy.controller;

import com.lwy.domain.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/gateway")
@RestController
public class GatewayController {

    @GetMapping("/getStudent")
    public Student getStudent(@RequestParam String id) {
        Student student = new Student();
        student.setId("1");
        student.setName("feign");
        student.setAge(3);
        return student;
    }
}
